<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use DB;
class SelveController extends CommonController
{
    
    public function index()
    {	
    	
       	$list = DB::table("commodity")
    		->where("commodity.comstatus","=","0")
            ->leftjoin("comimg","comimg.sid" ,"=", "commodity.id")
            ->leftjoin("comtable","comtable.sid","=","commodity.id")
            ->paginate(5);

        return view("admin.comtable.selve",['list'=>$list]);
    }
}
